package xx.rocketmq.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import xx.rocketmq.producer.SendMsg;

import javax.annotation.Resource;

@RestController
public class SendMsgController {
    @Resource
    SendMsg sendMsg;

    @RequestMapping(value = "/send",method = RequestMethod.GET)
    public String  send(String s) {
        sendMsg.send(s);
        return "添加成功";
    }
}
